<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class AdminAuthrule extends Validate
{
    protected $rule =   [
        'pid'	=> 'require|number',
        'name'	=> 'require|unique:admin_authrule',
        'title'	=> 'require|chsAlpha',    
    ];
    
    protected $message  =   [
        'pid.require'		=> '请选择上级',
        'pid.number'		=> '上级不正确',
        'name.require'		=> '请输入规则',
		'name.unique'		=> '已有该权限',
        'title.require'		=> '请输入名称',
        'title.chsAlpha'	=> '名称只能为汉字和字母',    
    ];
    
}